package com.zjj.dao.impl;

import com.zjj.dao.StudentDao;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

@Repository("studentDao")//将对象交由Spring管理
public class StudentDaoImpl implements StudentDao {

    //获取文件中的数据

    @Value("{name}")
    private String name;

    @Value("{age}")
    private int age;

    @Value("{hobby}")
    private String hobby;


    @Override
    public void StudentDetail() {
        System.out.println(name+"---"+age+"---"+hobby);
    }
}
